const api = {
	state: {
		// 全局变量接口
		api: {
			GLOBAL_defaultKaptcha:'/admin/defaultKaptcha?sessionId=',//验证码图片
			
			GLOBAL_login:'/admin/login',//密码登录
			GLOBAL_logout:'/admin/logout',//登出
			GLOBAL_getMsg:'/admin/getMsg',//获取手机登录验证码
			GLOBAL_admin_getMessage:'/admin/getMessage',//获取手机登录验证码
			GLOBAL_admin_loginByPhone:'/admin/loginByPhone',//验证码登录
			GLOBAL_admin_findOrganization:'/admin/findOrganization',//选取组织
			GLOBAL_admin_register:'/admin/register',//注册
			GLOBAL_admin_getBackPassword:'/admin/getBackPassword ',//忘记密码
			
			
			GLOBAL_rest_sys_user_resetNewpassword:'/admin/rest/sys/user/resetNewpassword',//修改密码
			// 文件柜
			GLOBAL_v1_api_file_getUrl:'/v1/api/file/getUrl',//在线查看
			GLOBAL_v1_api_file_getAllTemplates:'/admin/rest/biz/filingCabinets/getAllTemplates',//获取所有模板
			GLOBAL_admin_rest_biz_filingCabinets_list:'/admin/rest/biz/filingCabinets/list',//获取共享盘数据
			GLOBAL_admin_rest_biz_filingCabinets_newName:'/admin/rest/biz/filingCabinets/newName',//文件重命名
			GLOBAL_admin_rest_biz_filingCabinets_forWordFile:'/admin/rest/biz/filingCabinets/forWordFile',//转发副本
			GLOBAL_admin_rest_biz_filingCabinets_moveFile:'/admin/rest/biz/filingCabinets/moveFile',//移动文件
			GLOBAL_admin_rest_biz_filingCabinets_save:'/admin/rest/biz/filingCabinets/save',//新建文件夹
			GLOBAL_admin_rest_biz_filingCabinets_delete:'/admin/rest/biz/filingCabinets/delete',//删除文件
			GLOBAL_admin_rest_biz_filingCabinets_recover:'/admin/rest/biz/filingCabinets/recover',//回收站列表
			GLOBAL_admin_rest_biz_filingCabinets_reduction:'/admin/rest/biz/filingCabinets/reduction',//文件还原
			GLOBAL_admin_rest_biz_filingCabinets_empty:'/admin/rest/biz/filingCabinets/empty',//清空回收站
			GLOBAL_admin_rest_sys_upload_fileUpload:'/admin/rest/sys/upload/fileUpload',//文件柜上传文件
			GLOBAL_admin_rest_biz_filingCabinets_searchPage:'/admin/rest/biz/filingCabinets/searchPage',//搜索
			GLOBAL_admin_rest_biz_filingCabinetsRole_list:'/admin/rest/biz/filingCabinetsRole/list',//获取文件夹管理者
			GLOBAL_admin_rest_biz_filingCabinetsRole_save:'/admin/rest/biz/filingCabinetsRole/save',//设置文件夹管理者
			GLOBAL_admin_rest_biz_filingCabinetsRole_delete:'/admin/rest/biz/filingCabinetsRole/delete',//删除文件夹管理者
			GLOBAL_admin_rest_biz_filingCabinetsRole_getSize:'/admin/rest/biz/filingCabinetsRole/getSize',//获取文件夹权限人数
			GLOBAL_admin_rest_biz_filingCabinetsRole_getSize:'/admin/rest/biz/filingCabinetsRole/getSize',//获取文件夹权限人数
			
			
			//邮箱
			GLOBAL_rest_vmail_mail_findUserByPhone:'/admin/rest/vmail/mail/findUserByPhone',//获取组织架构
			GLOBAL_rest_vmail_mail_save:'/admin/rest/vmail/mail/save',//发送邮箱
			GLOBAL_rest_vmail_mail_list:'/admin/rest/vmail/mail/list',//获取邮箱列表
			GLOBAL_rest_vmail_mail_read:'/admin/rest/vmail/mail/read',//获取邮件详情
			GLOBAL_rest_vmail_mail_delete:'/admin/rest/vmail/mail/delete',//逻辑删除邮件
			GLOBAL_rest_vmail_mail_deleteMail:'/admin/rest/vmail/mail/deleteMail',//物理删除
			GLOBAL_rest_vmail_mail_findUserByRoleId:'/admin/rest/vmail/mail/findUserByRoleId',//角色列表
			GLOBAL_rest_vmail_mailBox_listBox:'/admin/rest/vmail/mailBox/listBox',//查询新建文件夹
			GLOBAL_rest_vmail_mailBox_save:'/admin/rest/vmail/mailBox/save',//新增新建文件夹
			GLOBAL_rest_vmail_mail_move:'/admin/rest/vmail/mail/move',//移动到
			GLOBAL_rest_vmail_mailBox_deleteMailBox:'/admin/rest/vmail/mailBox/deleteMailBox',//删除文件夹
			GLOBAL_rest_file_upload_fileUpload:'/admin/rest/file/upload/fileUpload',//邮箱附件上传type=0  1头像 2聊天文件
			GLOBAL_rest_file_upload_removeFileUpload:'/admin/rest/file/upload/removeFileUpload',//附件取消上传
			GLOBAL_rest_vmail_mail_selectByCondition:'/admin/rest/vmail/mail/selectByCondition',//邮件搜索
			GLOBAL_rest_vmail_mail_getPercent:'/admin/rest/vmail/mail/getPercent',//邮件磁盘空间
			GLOBAL_rest_vmail_mail_isAllRead:'/admin/rest/vmail/mail/isAllRead',//全部已读
			//聊天
			GLOBAL_rest_webSocket_chat_message:'/admin/rest/webSocket/chat/message',//发送消息
			GLOBAL_rest_chat_message_findSession:'/admin/rest/chat/message/findSession',//消息列表
			GLOBAL_rest_webSocket_chat_heartBeat:'/admin/rest/webSocket/chat/heartBeat',//心跳机制
			
			//通讯录
			GLOBAL_rest_sys_user_findUserById:'/admin/rest/sys/user/findUserById',//获取用户信息
			GLOBAL_rest_chat_message_getContacts:'/admin/rest/chat/message/getContacts',//获取最近联系人
			
			//用户
			GLOBAL_rest_file_upload_uploadPhoto:'/admin/rest/file/upload/uploadPhoto',//头像上传
			GLOBAL_rest_webSocket_chat_updateRemarks:'/admin/rest/webSocket/chat/updateRemarks',//设置备注
			GLOBAL_rest_webSocket_chat_updateUserInformation:'/admin/rest/webSocket/chat/updateUserInformation',//修改个人信息
			
			// 量子
			GLOBAL_rest_chat_encryption_initKey:'/admin/rest/chat/encryption/initKey',//量子初始化
			GLOBAL_rest_sys_user_setUserSign:'/admin/rest/sys/user/setUserSign',//设置手势
			GLOBAL_rest_sys_user_getUserSign:'/admin/rest/sys/user/getUserSign',//获取手势
			GLOBAL_rest_biz_filingCabinets_upLode:'/admin/rest/biz/filingCabinets/upLode',//文件柜字符串生成文件
			GLOBAL_rest_vmail_encryption_keepSecret:'/admin/rest/vmail/encryption/keepSecret',//邮箱字符串生成文件
			
		}
	},
	mutations: {
		SET_BREADCRUMB: (state, breadcrumb) => {
			state.breadcrumb = breadcrumb
		},
	},
	actions: {
		SET_BREADCRUMB({
			commit
		}, userInfo) {
			return new Promise((resolve, reject) => {
				commit('SET_BREADCRUMB')
				resolve()
			})
		}
	}
}

export default api
